package com.knight.study.patterns.tujie.observer;

/**
 * @Author knight
 * @Date 2024/9/12 11:41
 */

public class ObserverMains {
    public static void main(String[] args) {
        final RandomNumberGenerator gen = new RandomNumberGenerator();
        Observer observer1 = new DigitObserver();
        Observer observer2 = new GraphObserver();
        gen.addObserver(observer1);
        gen.addObserver(observer2);
        gen.execute();
    }
}
